package com.alipay.pay.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org.springframework.stereotype.Component;
/**
 * 
 * 
 * 读取支付宝 配置
 * @author xxoo
 *
 */
@Component
public class AlipayConfig {

	@Value("${alipay.appid}")
	private String  appid;
	
	@Value("${alipay.alipayPublicKey}")
	private String  alipayPublicKey;
	
	@Value("${alipay.merchantPrivateKey}")
	private String  merchantPrivateKey;
	
	@Value("${alipay.returnUrl}")
	private String  returnUrl;
	
	@Value("${alipay.notifyUrl}")
	private String  notifyUrl;
	
	@Value("${alipay.gatewayUrl}")
	private String  gatewayUrl;
	
	@Value("${alipay.signType}")
	private String  signType;
	
	@Value("${alipay.charset}")
	private String  charset ;
	
	@Value("${alipay.formate}")
	private String formate;
	

	public String getFormate() {
		return formate;
	}

	public void setFormate(String formate) {
		this.formate = formate;
	}

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public String getAlipayPublicKey() {
		return alipayPublicKey;
	}

	public void setAlipayPublicKey(String alipayPublicKey) {
		this.alipayPublicKey = alipayPublicKey;
	}

	public String getMerchantPrivateKey() {
		return merchantPrivateKey;
	}

	public void setMerchantPrivateKey(String merchantPrivateKey) {
		this.merchantPrivateKey = merchantPrivateKey;
	}

	public String getReturnUrl() {
		return returnUrl;
	}

	public void setReturnUrl(String returnUrl) {
		this.returnUrl = returnUrl;
	}

	public String getNotifyUrl() {
		return notifyUrl;
	}

	public void setNotifyUrl(String notifyUrl) {
		this.notifyUrl = notifyUrl;
	}

	public String getGatewayUrl() {
		return gatewayUrl;
	}

	public void setGatewayUrl(String gatewayUrl) {
		this.gatewayUrl = gatewayUrl;
	}

	public String getSignType() {
		return signType;
	}

	public void setSigntype(String signType) {
		this.signType = signType;
	}

	public String getCharset() {
		return charset;
	}

	public void setCharset(String charset) {
		this.charset = charset;
	}


	@Override
	public String toString() {
		return "AlipayConfig [appid=" + appid + ", alipayPublicKey=" + alipayPublicKey + ", merchantPrivateKey="
				+ merchantPrivateKey + ", returnUrl=" + returnUrl + ", notifyUrl=" + notifyUrl + ", gatewayUrl="
				+ gatewayUrl + ", signType=" + signType + ", charset=" + charset + ", formate=" + formate + "]";
	}
	
}
